package net.homelinux.ajay.net.ondisk.model.client;


import com.google.gwt.http.client.RequestException;


public class HttpHeadMetaFactory extends MetaFactory {

  public Link getMeta(String url) {
    HttpHeadMeta hmeta = new HttpHeadMeta();
    Link meta = hmeta;
    
    
    meta.setUrl(url);
    
    try {
      HttpWorker.getInstance().getHead(url,hmeta);
    } catch (RequestException e) {
      hmeta.setHttpLoadStatus(Link.ERROR);
      // TODO: Log exception
      e.printStackTrace();
  
    
    }

    
    return meta;
    
    
    
    
  }

}
